package pl.un4giv3n.mightvsmagic.entity;

import java.io.Serializable;

import javax.persistence.Embeddable;

/**
 * @author andrzejewskia
 * reward entity - this is what player recives after woking/training/fighting
 */
@Embeddable
public class Reward implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * rewarded gold
	 */
	private long rewardedGold;
	/**
	 * rewarded fight exp
	 */
	private long rewardedFightExp;
	/**
	 * rewarded magic exp
	 */
	private long rewardedMagicExp;

	/**
	 * this is a Null Object pattern object
	 */
	public transient static Reward NO_REWARD;

	public Reward() {
	}

	static {
		NO_REWARD = new Reward(0, 0, 0);
	}

	public Reward(long gold, long fightExp, long magicExp) {
		super();
		this.rewardedGold = gold;
		this.rewardedFightExp = fightExp;
		this.rewardedMagicExp = magicExp;
	}

	public long getRewardedGold() {
		return rewardedGold;
	}

	public void setRewardedGold(long gold) {
		this.rewardedGold = gold;
	}

	public long getRewardedFightExp() {
		return rewardedFightExp;
	}

	public void setRewardedFightExp(long fightExp) {
		this.rewardedFightExp = fightExp;
	}

	public long getRewardedMagicExp() {
		return rewardedMagicExp;
	}

	public void setRewardedMagicExp(long magicExp) {
		this.rewardedMagicExp = magicExp;
	}
}
